# file = open("test.txt", "w" ,encoding="utf-8")
# file.write("Hello World")
# file.close()
# file = open("test.txt", "r+" ,encoding="utf-8")
# print(file.read())
# file.close()

# with open("test.txt", "r+", encoding="utf-8") as f:
#     print(f.read())
#
# 获取tpshop登录图片验证码接口数据
import requests

response = requests.get("https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.27888225669474687")

# print(response.content)
file = open("code.png", "wb")
file.write(response.content)
file.close()
